#!/bin/bash

TTYNUM=`/home/pi/siweather/scripts/get_sunsaver`
echo $TTYNUM

DATETIME=`date`

echo "Data as at "$DATETIME > /home/pi/web/sunsaver.inc
/home/pi/libraries/sunsaver/sunsaver /dev/ttyUSB$TTYNUM >> /home/pi/web/sunsaver.inc
#/home/pi/libraries/sunsaver/sunsaver /dev/ttyUSB$TTYNUM
